<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr1 = [2, 3, 6, 1, 77, 66, 52, 0, 25, 7]

        let arr2 = []
        document.write(arr1)
    </script>
    <br>
    <script>
        arr1.shift()
        arr1.pop()
        document.write(arr1)
        for (let i = 0; i < arr1.length; i++) {
            if (arr1[i] >= 10) {
                arr2.push(arr1[i])
            }
        }
    </script>
    <br>
    <script>
        document.write(arr2)
    </script>

</body>

</html>